package ipcards.rulesets;
import ipcards.CardSet;
import ipcards.net.Client;

import java.util.*;

public class PermissionChecker {

	//private boolean[] movements;
	//private ArrayList cards;
	private ArrayList players;
	
	//subsets for 
	
	//0: hold card(s)
	//1: move card(s)
	//2: flip card(s)
	//3: shuffle
	//4: new game
	//5: z-order changes
	//6: add deck
	
	public PermissionChecker(CardSet cards, Vector<Client> players) {				//players on CardsServer, cards on Table
		this.players = new ArrayList(players.size());
		for(int i = 0; i < players.size(); i++) {
			this.players.set(i, new ArrayList(cards.size()));
			
			for(int j = 0; j < cards.size(); j++) {
				ArrayList p = (ArrayList)(this.players.get(i));
				p.set(j, new boolean[7]);
				
				for(int k = 0; k < 7; k++) {
					ArrayList p2 = (ArrayList)(this.players.get(i));
					boolean[] c = (boolean[])(p2.get(j));
					c[k] = false;
				}
			}
		}
		//movements = new boolean[false, false, false, false, false, false, false];
	}
	
	//any generic methods here
	
	/*public boolean getPermission(PlayerModel player, Card card, int permissionNumber) {
		return (players.get(player).get(card))[permissionNumber];
	}*/
}